import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import 'rxjs/add/operator/map';
import { Api } from '../api';

/*
  Generated class for the CustomerServiceProvider provider.

  See https://angular.io/docs/ts/latest/guide/dependency-injection.html
  for more info on providers and Angular DI.
*/
@Injectable()
export class CustomerService {

  constructor(public http: Http, public api: Api) {

  }

  // mcssAppService-web
  queryStatByIndutry(params?: any) {
    return this.api.post('mcssTest/cust/queryStatByIndutry.do', params)
      .share();
  }  

  queryStatByCustomer(params?: any) {
    return this.api.post('mcssTest/cust/queryStatByCustomer.do', params)
      .share();
  }

  queryCustList(params?: any) {
    return this.api.post('mcssTest/cust/queryCustByIndustryId.do', params)
      .share();
  }

  queryDeclineRatio(params?: any) {
    return this.api.post('mcssTest/cust/queryDeclineRatio.do', params)
      .share();
  }
}
